<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta content="text/html; charset=utf-8" http-equiv="content-type" />
	<script type="text/javascript" src="ckeditor/ckeditor_source.js"></script>
	<script src="sample.js" type="text/javascript"></script>
	<script type="text/javascript">
    function tryAlert(sHTML){
      var sOpenUrl = '';
			if ( CKEDITOR.env.isCustomDomain() )
			{
				window._cke_htmlToLoad = sHTML;
				sOpenUrl = 'javascript:void( (function(){' +
					'document.open("application/pdf");' +
					'document.ContentType = "application/pdf";' +
					'document.domain="' + CKEDITOR.document.domain + '";' +
					'document.write( window.opener._cke_htmlToLoad );' +
					'document.close();' +
					'window.opener._cke_htmlToLoad = null;' +
					'})() )';
			}

			var oWindow = window.open( sOpenUrl, null, 'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' +
				299 + ',height=' + 288 + ',left=' + 299 );

			if ( !CKEDITOR.env.isCustomDomain() )
			{
				var d = oWindow.document.open('application/pdf');
				d.open('application/pdf');
				d.write(sHTML);
				d.close();
				oWindow.document.write( sHTML );
				oWindow.document.close();
			}
    }
  </script>
	<link href="sample.css" rel="stylesheet" type="text/css" />
</head>
<body onLoad="">
	<!-- This <div> holds alert messages to be display in the sample page. -->
	<div id="alerts">
		<noscript>
			<p>
				<strong>CKEditor requires JavaScript to run</strong>. In a browser with no JavaScript
				support, like yours, you should still see the contents (HTML data) and you should
				be able to edit it normally, without a rich editor interface.
			</p>
		</noscript>
	</div>
  <center>
  <!--
  <applet id="PDFApplet" name="PDFApplet" width=0 height=0 MAYSCRIPT code="PDFPrinter" codebase="pdfApplet" archive="pdfPrinter.jar,core-renderer.jar,core-renderer-minimal.jar,iText-2.0.8.jar,javaws.jar,plugin.jar,xml-apis-xerces-2.9.1.jar,jtidy-r938.jar" > archive="pdfPrinter.jar,core-renderer.jar,core-renderer-minimal.jar,iText-2.0.8.jar,javaws.jar,plugin.jar,xml-apis-xerces-2.9.1.jar"
   <param name="jnlp_href" value="pdfApplet.jnlp">
  </applet>
  -->
  <script src="http://www.java.com/js/deployJava.js"></script>
  <script> 
      var attributes = { codebase:'pdfApplet', code:'PDFApplet',  width:5, height:5, id:'PDFApplet'} ; 
      var parameters = {jnlp_href: 'pdfApplet.jnlp'} ; 
      deployJava.runApplet(attributes, parameters, '1.5'); 
  </script>
  <textarea class="ckeditor" id="editor12" name="editor1"></textarea>
  
 </center>
<script type="text/javascript">
  CKEDITOR.pdfApplet = document.getElementById('PDFApplet');
  CKEDITOR.printPDF = function(msg){
    document.getElementById('PDFApplet').printPDF(msg);  
  }
</script>
  
</body>
</html>
